<?php
/**
 * All data collected by a local seminar wizard and stored in an HTTP session.
 * @author jan
 */
class ViseminWizardData {

    public static $STEP_SEMINAR = 'viSeminar';
    public static $STEP_PRICES = 'prices';
    public static $STEP_SUMMARY = 'summary';

    public static $STEPS; // Initialized below the class declaration

    public $step;

    public $viSeminar;
    public $viAccomodationTypeList;
    public $pricesForm;

    public function __construct() {
        $this->step = self::$STEPS[0];
    }

    public function goBackToStep($step) {
        $this->step = $step;

        switch ($step) {
            case self::$STEP_SEMINAR :
                // When you go back to the first step, WizardController will create a new data object.
            case self::$STEP_PRICES :
            default :
                break;
        }
    }
}

// This array sets the order of the wizard steps
ViseminWizardData::$STEPS = array(
        ViseminWizardData::$STEP_SEMINAR,
        ViseminWizardData::$STEP_PRICES,
        ViseminWizardData::$STEP_SUMMARY
);
?>
